package jjn.time_api.case1;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/16 13:34
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        while (scanner.hasNext()) {
            String line = scanner.nextLine();
            LocalDate date = LocalDate.parse(line);
            LocalDateTime start = date.atStartOfDay();
            LocalDateTime end = date.atTime(23, 59, 59);
            System.out.println(pattern.format(start));
            System.out.println(pattern.format(end));
        }
    }
}
